<?php

namespace app\command;


use app\common\service\WebSocket\WebSocketTask;
use think\console\Command;

class WebSocketService extends Command
{
    protected function configure()
    {
        $this->setName('WebSocketService')//命令
        ->setDescription('长链接服务');//描述
    }

    protected function execute(\think\console\Input $input, \think\console\Output $output)
    {
       $server=new WebSocketTask();
       $server->start();
    }

}